#version: 1.0.0
FROM node:8
ENV REFRESHED_AT 2016-11-23

# Set the locale
#RUN locale-gen zh_CN.UTF-8
#ENV LANG zh_CN.UTF-8
#ENV LANGUAGE zh_CN:zh
#ENV LC_ALL zh_CN.UTF-8

#set timezone
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

############################################ system

RUN npm install --global gulp
ADD inner_run.sh /sft/inner_run.sh
RUN chmod +x /sft/inner_run.sh
ADD .npmrc /root/.npmrc

EXPOSE 8081
ENTRYPOINT ["/sft/inner_run.sh"]
